package com.ruoyi.bbsAdmin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 论坛搜索记录对象 bbs_search_record
 * 
 * @author ruoyi
 * @date 2024-06-08
 */
public class SearchRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 搜索用户id */
    @Excel(name = "搜索用户id")
    private String userId;

    /** 所在学校id */
    @Excel(name = "所在学校id")
    private Integer schoolId;

    /** 搜索内容 */
    @Excel(name = "搜索内容")
    private String text;

    /** 搜索帖子类型 */
    @Excel(name = "搜索帖子类型")
    private Integer contentType;

    /** 搜索时间 */
    @Excel(name = "搜索时间")
    private Date searchTime;

    /** 备用字段1 */
    @Excel(name = "备用字段1")
    private String param1;

    /** 备用字段2 */
    @Excel(name = "备用字段2")
    private String param2;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setSchoolId(Integer schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Integer getSchoolId() 
    {
        return schoolId;
    }
    public void setText(String text) 
    {
        this.text = text;
    }

    public String getText() 
    {
        return text;
    }
    public void setContentType(Integer contentType) 
    {
        this.contentType = contentType;
    }

    public Integer getContentType() 
    {
        return contentType;
    }
    public void setSearchTime(Date searchTime) 
    {
        this.searchTime = searchTime;
    }

    public Date getSearchTime() 
    {
        return searchTime;
    }
    public void setParam1(String param1) 
    {
        this.param1 = param1;
    }

    public String getParam1() 
    {
        return param1;
    }
    public void setParam2(String param2) 
    {
        this.param2 = param2;
    }

    public String getParam2() 
    {
        return param2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("schoolId", getSchoolId())
            .append("text", getText())
            .append("contentType", getContentType())
            .append("searchTime", getSearchTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("param1", getParam1())
            .append("param2", getParam2())
            .toString();
    }
}
